/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.medicine.domain;

import com.oyun.base.BaseEntity;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author huhe
* @date 2024-06-28
**/
@Data
@TableName("single_medicine")
public class SingleMedicine extends BaseEntity implements Serializable{

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "药品分类（字典）")
    private String type;

    @ApiModelProperty(value = "蒙药名")
    private String mnName;

    @ApiModelProperty(value = "mnNameCode")
    private String mnNameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "elName")
    private String elName;

    @ApiModelProperty(value = "蒙语别名")
    private String mnAnotherName;

    @ApiModelProperty(value = "mnAnotherNameCode")
    private String mnAnotherNameCode;

    @ApiModelProperty(value = "zhAnotherName")
    private String zhAnotherName;

    @ApiModelProperty(value = "elAnotherName")
    private String elAnotherName;

    @ApiModelProperty(value = "蒙语学名")
    private String mnScientificName;

    @ApiModelProperty(value = "mnScientificNameCode")
    private String mnScientificNameCode;

    @ApiModelProperty(value = "zhScientificName")
    private String zhScientificName;

    @ApiModelProperty(value = "elScientificName")
    private String elScientificName;

    @ApiModelProperty(value = "蒙语文献来源")
    private String mnDocument;

    @ApiModelProperty(value = "mnDocumentCode")
    private String mnDocumentCode;

    @ApiModelProperty(value = "zhDocument")
    private String zhDocument;

    @ApiModelProperty(value = "蒙语生境")
    private String mnHabitat;

    @ApiModelProperty(value = "zhHabitat")
    private String zhHabitat;

    @ApiModelProperty(value = "蒙语入药部分")
    private String mnMedicatedPart;

    @ApiModelProperty(value = "zhMedicatedPart")
    private String zhMedicatedPart;

    @ApiModelProperty(value = "蒙语性味")
    private String mnNatureTaste;

    @ApiModelProperty(value = "mnNatureTasteCode")
    private String mnNatureTasteCode;

    @ApiModelProperty(value = "zhNatureTaste")
    private String zhNatureTaste;

    @ApiModelProperty(value = "蒙语功能")
    private String mnFeature;

    @ApiModelProperty(value = "mnFeatureCode")
    private String mnFeatureCode;

    @ApiModelProperty(value = "zhFeature")
    private String zhFeature;

    @ApiModelProperty(value = "蒙语主治")
    private String mnFunctionsDisease;

    @ApiModelProperty(value = "mnFunctionsDiseaseCode")
    private String mnFunctionsDiseaseCode;

    @ApiModelProperty(value = "zhFunctionsDisease")
    private String zhFunctionsDisease;

    @ApiModelProperty(value = "蒙语副作用")
    private String mnSideEffect;

    @ApiModelProperty(value = "mnSideEffectCode")
    private String mnSideEffectCode;

    @ApiModelProperty(value = "zhSideEffect")
    private String zhSideEffect;

    @ApiModelProperty(value = "蒙语临床使用")
    private String mnClinicalUse;

    @ApiModelProperty(value = "zhClinicalUse")
    private String zhClinicalUse;

    @ApiModelProperty(value = "蒙语解释")
    private String mnExplain;

    @ApiModelProperty(value = "zhExplain")
    private String zhExplain;

    @ApiModelProperty(value = "蒙语加工")
    private String mnProcess;

    @ApiModelProperty(value = "mnProcessCode")
    private String mnProcessCode;

    @ApiModelProperty(value = "zhProcess")
    private String zhProcess;

    @ApiModelProperty(value = "蒙语存储")
    private String mnStore;

    @ApiModelProperty(value = "mnStoreCode")
    private String mnStoreCode;

    @ApiModelProperty(value = "zhStore")
    private String zhStore;

    @ApiModelProperty(value = "蒙语参考资料")
    private String mnReferenceMaterial;

    @ApiModelProperty(value = "zhReferenceMaterial")
    private String zhReferenceMaterial;


    @ApiModelProperty(value = "status")
    private Integer status;

    @ApiModelProperty(value = "remark")
    private String remark;

    public void copy(SingleMedicine source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
